#!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
@file:1.py
@author:1740681566@qq.com
@date:	2018/04/20
@version: 
    v1.1 2018-04-20 fix bug
    v1.0 2018-04-20 create
@input:	需要就写，不需要就不写
@output:需要就写，不需要就不写

模块功能简述,Get a list of maximum `limit` number of users with user id starting from `start_uid`
"""
count = []
num = [1, 2, 3, 4]
target = int(input("请你输入你的数字:"))
for i in range(len(num)):
    count.append(i)
    s = num[i]
    for j in range(i+1, len(num)):
        s = s+num[j]
        count.append(j)
        if s == target:
            print(count)
            break
    count.clear()